<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Seguridad Bancaria</title> 
        <link href="http://localhost/trunk/Pr-bd1-ce/assets/css/estilose.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        
        <header>
            <section class="contenedor">
                
            </section>
        </header>

        <!-- esto es un ejemplo de menu -->
         <nav>
            <section class="contenedor">
                <ul>
                    <!--
                    <li><a href="#">Inicio</a></li>
                    <li><a href="#">Productos</a></li>
                    <li><a href="#">Contacto</a></li>
                    <li><a href="#">Nosotros</a></li>
                    -->
                </ul>
            </section>
        </nav>
        
        <section class="contenedor"><section class="contenido">
                              
                <form method = 'post' action = "<?php echo base_url() ?>index.php/empleado"  >
        <table>
            <br>
                    <tr> <!-- Los diferentes iconos que vamos a utilizar  -->
                       <td><label for = "Ficha">Ficha:</label></td>
                       <td><input type = "text" placeholder="" name = "Ficha" id = "Ficha" value="<?php echo set_value('Ficha'); ?>">                         
                           <?php echo form_error('Ficha'); ?>                           
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Nombre ">Nombre:</label></td>
                       <td><input type = "text" name = "Nombre" id = "Nombre" value="<?php echo set_value('Nombre'); ?>">
                           <?php echo form_error('Nombre'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Dir_Emp">Dirección:</label></td>
                       <td><input type = "text" name = "Dir_Emp" id = "Dir_Emp" value="<?php echo set_value('Dir_Emp'); ?>">
                           <?php echo form_error('Dir_Emp'); ?>
                       </td>
                    </tr>                   
                    
                    <td><label for = "Est_Civil">Estado Civil:</label></td>
                       <td>
                        <select  name = "Est_Civil" id = "Est_Civil" >
                            <!--<option value = ""  = "selected">SELECCIONE</option>-->
                            <option value = "C" = "selected" <?php echo set_select('Est_Civil','C'); ?>>Casado/a</option>
                            <option value = "S" <?php echo set_select('Est_Civil','S'); ?>>Soltero/a</option>
                            <option value = "D" <?php echo set_select('Est_Civil','D'); ?>>Divorciado/a</option>
                            <option value = "V" <?php echo set_select('Est_Civil','V'); ?>>Viudo/a</option>
                        </select>
                           <?php echo form_error('Est_Civil'); ?>
                       </td>
                    
                    <tr>
                       <td><label for = "Sexo">Sexo:</label></td>
                       <td>
                        <select  name = "Sexo" id = "Sexo" >
                            <!--<option value = ""  = "selected">SELECCIONE</option>-->
                            <option value = "M" = "selected" <?php echo set_select('Sexo','M'); ?>>M</option>
                            <option value = "F" <?php echo set_select('Sexo','F'); ?> >F</option>
                        </select>
                           <?php echo form_error('Sexo'); ?>
                       </td>
                    </tr>
                    
                    <tr> 
                       <td><label for = "F_Nac">Fecha de Nacimiento:</label></td>
                       <td><input type = "date" name = "F_Nac" id = "F_Nac" value="<?php echo set_value('F_Nac'); ?>">
                           <?php echo form_error('F_Nac'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "F_Ing">Fecha de Ingreso:</label></td>
                       <td><input type = "date" name = "F_Ing" id = "F_Ing" value="<?php echo set_value('F_Ing'); ?>">
                            <?php echo form_error('F_Ing'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "F_Egr">Fecha de Egreso:</label></td>
                       <td><input type = "date" name = "F_Egr" id = "F_Egr" value="<?php echo set_value('F_Egr'); ?>">
                           <?php echo form_error('F_Egr'); ?>
                       </td>
                    </tr>
                    
                    <tr>
                       <td><label for = "Status">Status:</label></td>
                       <td>
                        <select  name = "Status" id = "Status" >
                            <!--<option value = ""  = "selected">SELECCIONE</option>-->
                            <option value = "A" = "selected" <?php echo set_select('Status','A'); ?>>A</option>
                            <option value = "R" <?php echo set_select('Status','R'); ?>>R</option>
                            <option value = "P" <?php echo set_select('Status','P'); ?>>P</option>
                        </select>
                           <?php echo form_error('Status'); ?>
                       </td>
                    </tr>
                    
                    <tr> 
                       <td><label for = "S_Dev">Sueldo:</label></td>
                       <td><input type = "text" name = "S_Dev" id = "S_Dev" value="<?php echo set_value('S_Dev'); ?>">
                           <?php echo form_error('S_Dev'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Ficha_J">Ficha del Jefe:</label></td>
                       <td><input type = "text" name = "Ficha_J" id = "Ficha_J" value="<?php echo set_value('Ficha_J'); ?>">
                           <?php echo form_error('Ficha_J'); ?>                           
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Cod_B">Código Bancario:</label></td>
                       <td><input type = "text" name = "Cod_B" id = "Cod_B" value="<?php echo set_value('Cod_B'); ?>">
                           <?php echo form_error('Cod_B'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Cod_S">Código Sucursal:</label></td>
                       <td><input type = "text" name = "Cod_S" id = "Cod_S" value="<?php echo set_value('Cod_S'); ?>">
                           <?php echo form_error('Cod_S'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Cod_TD">Código Departamento:</label></td>
                       <td><input type = "text" name = "Cod_TD" id = "Cod_TD" value="<?php echo set_value('Cod_TD'); ?>">
                           <?php echo form_error('Cod_TD'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Email">Email:</label></td>
                       <td><input type = "email" name = "Email" id = "Email" value="<?php echo set_value('Email'); ?>">
                           <?php echo form_error('Email'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "Telefono">Telefono:</label></td>
                       <td><input type = "tel" name = "Telefono" id = "Telefono" value="<?php echo set_value('Telefono'); ?>">
                           <?php echo form_error('Telefono'); ?>
                       </td>
                    </tr>
                    
                    <tr> 
                       <td><label for = "Cod_C">Código del Cargo:</label></td>
                       <td><input type = "text" name = "Cod_C" id = "Cod_C" value="<?php echo set_value('Cod_C'); ?>">
                           <?php echo form_error('Cod_C'); ?>
                       </td>
                    </tr>
                    
                    <tr> 
                       <td><label for = "F_Ini">Fecha Inicio del Cargo:</label></td>
                       <td><input type = "date" name = "F_Ini" id = "F_Ini" value="<?php echo set_value('F_Ini'); ?>">
                            <?php echo form_error('F_Ini'); ?>
                       </td>
                    </tr>
                    <tr> 
                       <td><label for = "F_Fin">Fecha Fin del Cargo:</label></td>
                       <td><input type = "date" name = "F_Fin" id = "F_Fin" value="<?php echo set_value('F_Fin'); ?>">
                           <?php echo form_error('F_Fin'); ?>
                       </td>
                    </tr>
                    
                    
                    <td><label for = "Operacion">Operacion:</label></td>
                       <td>
                        <select  name = "Operacion" id = "operacion" >
                            <!--<option value = ""  = "selected">SELECCIONE</option>-->                            
                            <option value = "Insertar" = "selected" <?php echo set_select('Insertar','Insertar'); ?>>Insertar</option>
                            <option value = "Actualizar" <?php echo set_select('Actualizar','Actualizar'); ?>>Actualizar</option>
                            <option value = "Eliminar" <?php echo set_select('Eliminar','Eliminar'); ?>>Eliminar</option>                            
                        </select>
                           <?php echo form_error('Operacion'); 
                           ?>
                       </td>
                    
                    
                    <tr>
                       <td>
                        <colspan = "2">
                        <p>
                        <input type = "submit" name = "enviar" value= "Aceptar">
                        &nbsp;&nbsp;
                        <input type= "submit" name = "atras" value="Cancelar" formaction="http://localhost/trunk/Pr-bd1-ce/index.php/mainmenu"  >                          
                        &nbsp;&nbsp;
                        
                        </td>       
                    </tr>
                 
        </table>
    </form>
</section></section>
        </section>
        <footer>
            <section class="contenedor">
                <p>Realizado por Carlos Cabral & Eulier Gonzalez</p>
            </section>
        </footer>
    </body>
</html>